package ClientInitial

import (
	"google.golang.org/grpc"
	"log"
)

var ServiceConnection *grpc.ClientConn

func InitGrpc() {
	conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure())
	if err != nil {
		log.Fatalf("服务端链接失败: %v", err)
	}
	ServiceConnection = conn
	log.Printf("hello服务端链接成功 \n")
}
